package marchsoft.modules.selfFish.pisciculture.entity.vo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import marchsoft.modules.system.entity.SysRelationFile;
import marchsoft.utils.LocalDateTimeSerializerSelf;

import java.time.LocalDateTime;
import java.util.List;

/** 社区交流
 * @title 社区交流
 * @description 社区交流
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 15:55
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "CommunityCommunicationVo对象", description = "社区交流")
public class CommunityCommunicationVo extends Model<CommunityCommunicationVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;


    @ApiModelProperty(value = "创建人")
    private Long createdUserId;

    @ApiModelProperty(value = "创建人名字")
    private String createdUserName;

    @ApiModelProperty(value = "账号名字")
    private String userName;

    @ApiModelProperty(value = "头像路径")
    private String avatarPath;

    @ApiModelProperty(value = "创建时间")
    @JsonSerialize(using = LocalDateTimeSerializerSelf.class)
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "html内容")
    private String htmlContent;

    @ApiModelProperty(value = "1文字，2图片，3音频，4视频")
    private String contentType;

    @ApiModelProperty(value = "查看次数")
    private Integer viewNum;

    @ApiModelProperty(value = "点赞次数")
    private Integer thumbsUp;

    @ApiModelProperty(value = "是否点赞")
    private Boolean isThumbsUp;

    @ApiModelProperty(value = "附件集合")
    private List<SysRelationFile> fileList;


}
